#!/usr/bin/env python
# -*- coding:utf-8 -*-

import ezdxf

dwg = ezdxf.readfile('../data/test.dxf')
modelspace = dwg.modelspace()
find_types = 'POLYLINE'
for e in modelspace.query(find_types):
    print(list(e.points()))